function generateCode(formName, displayIn){
var script_path = "http://www.social4free.com";
var keywords = document.forms[formName].elements["keywords"].value;
keywords = keywords.replace(" ", "");
var keywords_array = new Array();
var the_code = "";
keyword_array = keywords.split(",");
the_code += "<script type=\"text/javascript\" src=\"" +  script_path + "/widff.php?id=" + keyword_array.join(", ") + "\"></script>";
displayCode(displayIn, the_code);
}
function displayCode(displayIn, the_code){
var the_element = document.getElementById(displayIn);
the_element.value = "";
the_element.value = the_code;
}